package com.better.backend.mqReceiverService.examReceiver.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.Valid;
import java.io.Serializable;
import java.util.List;

/**
 * @author  参考单位(数据同步)  如果为校级考试，则表示年级，如果为班级考试，则为班级信息
 * @create 2017-10-05 16:55
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("参考单位信息")
public class ExamUnitModel implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "年级ID/班级ID",required = true)
    @NotEmpty(message ="学校或者班级ID不能为空")
    private String unitId;  //ID（学校或者是班级）
    @ApiModelProperty(value = "年级名称/班级名称",required = true)
    @NotEmpty(message = "年级名称、班级名称不能为空")
    private String unitName;
    @ApiModelProperty(value = "参考科目分数信息",required = true)
    @NotEmpty
    @Valid
    private List<SubjectScoreModel> subjectScoreModels;
}
